home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97a.txt / 000061_icon-group-sender _Mon Mar 3 15:49:08 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 3 Mar 1997 16:36:39 MST
  2. Date: Mon, 3 Mar 1997 15:49:08 -0600
  3. Message-Id: <199703032149.PAA13757@ns1.cmpu.net>
  4. Mime-Version: 1.0
  5. Content-Type: text/plain
  6. Content-Transfer-Encoding: 7bit
  7. From: gep2@computek.net
  8. Subject: Re: "Re: Icon and two-dimensional matching
  9. To: icon-group@cs.arizona.edu
  10. X-Mailer: SPRY Mail Version: 04.00.06.17
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12. Status: RO
  13. Content-Length: 1858
  14.  
  15. Interesting article, however:
  16.  
  17. >Icon and SNOBOL emphasize handling values rather than references 
  18. although there are 'name' operators, and don't handle sub-arrays,
  19. substrings or sublists as pseudovariables.  
  20.  
  21. SNOBOL4 absolutely DOES support substrings as a pseudovariable, as long as the 
  22. substring in question it the portion of the subject string that you're matching. 
  23.  This, in fact, is the basis for ALL pattern matching in SNOBOL4!
  24.  
  25. >I'm interested in generalized macro processing, where the macro 
  26. processing becomes a method - a dynamic method - of program 
  27. language development, and that plays just as much a part in program 
  28. development as algorithm design, module design and data structure
  29. design.  One specifies the TRANSLATION of algorithms, data 
  30. specifications, ... into code.  Previous passes over the text or previous 
  31. work in the same pass where rescanning is allowed, besides perhaps 
  32. transforming the text, may decorate it with tokens (roughtly, a structure 
  33. containing a source string and other information), or with trees or with 
  34. other structures and with other information.  Then one has to recognize 
  35. patterns among the tag-along information and source text, and to 
  36. process it both by generating new information and transforming the 
  37. structures and data that exist.
  38.  
  39. One of the shortcomings of Icon (compared with S-BOL), IMO, is that Icon 
  40. supports neither EVAL() nor CODE().  Admittedly these are features that one 
  41. doesn't use often in most S-BOL programs, but when you -do- need them, they are 
  42. absolutely indispensable!
  43.  
  44. In the case in question, you could use the full features of S-BOL to modify the 
  45. program itself at source level, and to replace almost any desired part of it 
  46. with an "enhanced" version during program execution... even in the middle of a 
  47. statement!
  48.  
  49. Gordon Peterson
  50. http://www.computek.net/public/gep2/
  51.  
  52.